package com.intellect.syncproject;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DerbyTest {

	public static void main(String[] args) throws ClassNotFoundException, SQLException {
		System.setProperty("jdbc.drivers", "org.apache.derby.jdbc.EmbeddedDriver");
		Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
		Connection conn = DriverManager.getConnection("jdbc:derby:sample");
		if( conn != null ) {
			System.out.println("Eureka!  I got a connection!!");
		}
		System.out.println("Set!!");
	}
}
